//#include "StdAfx.h"
#include "base_critical_section.h"

base_critical_section::base_critical_section(void)
{
	InitializeCriticalSection( &m_cs );
}

base_critical_section::~base_critical_section(void)
{
	DeleteCriticalSection( &m_cs );
}
void base_critical_section::Lock()
{
	EnterCriticalSection( &m_cs );
}
void base_critical_section::UnLock()
{
	LeaveCriticalSection( &m_cs );
}